package com.gmss.crawler.enums;

public enum CommonEnum {
    SUCCESS("000000", "成功"),
    FAILURE("100001", "失败"),
    ERROR("100002", "内部错误"),
    PARAM_ERROR("100003", "参数错误"),
    PARAM_NULL_ERROR("100004", "请求参数不能为空"),
    PASSWD_ERROR("100004", "密码错误"),
    CHECK_CODE_ERROR("100005", "校验码错误"),
    CONFIRM_PASSWORD_ERROR("100006", "确认密码错误"),
    codeT_FOUND_ACCOUNT("100007", "账号不存在"),
    IS_INVALID_ACCOUNT("100008", "该用户已锁定，请联系管理员解锁"),
    IS_FIRST_LOGIN("100009", "首次登录"),
    LOGIN_PASSWD_ERR_MORE_THEN_COUNT("100010", "登录密码错误输入超过五次"),
    INVALID_IP_ADDRESS("100011", "IP登录受限"),
    USER_INVALID_SESSION_ERROR("100013","session过期"),
    USER_NOTRESOURCES_ERROR("100014","访问权限受制，禁止访问！"),
    SERVICE_ERROR ("100000", "服务器开小差了，请稍后再试！"),
    UCCOMPAY_EXIST("103003", "该公司已存在！"),
    REPEAT("103004", "帐号已存在！！"),
    NOT_RULES("103009","没有规则集"),
    NOT_TYPE_VERSION("103017","没有规则集版本"),
    NOT_IDSTR_EMPTY("103010","Id不能为空"),
    RESPONSE_CODE_EMPTY("103011","无数据"),
    EXAMINE_USECOUNT_IS_OVER("100010","您已超出当日访问限制次数!"),
    HAVE_TASK("1000020","当前有任务正在进行中，请稍等！"),
    COBWEB_OVERLIMITS("2000001","超出次数限制"),
    COBWEB_REQUEST_WRONG("2000004","请求不合法");

    private final String code;
    private final String message;

    CommonEnum(String code, String message){
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
